package com.ruoyi;

import com.ruoyi.project.dzbqUtil.util.SocketUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@EnableScheduling//开启定时任务
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
            SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  WMS启动成功   ლ(´ڡ`ლ)ﾞ  \n");
        //TODO 几个IP就启动几个
//        SocketUtil socketUtil1 = new SocketUtil();
//        SocketUtil socketUtil2 = new SocketUtil();
//        SocketUtil socketUtil3 = new SocketUtil();
//        socketUtil1.connect("10.81.129.116", 8234);
//        socketUtil2.connect("10.81.129.117", 8234);
//        socketUtil3.connect("10.81.129.118", 8234);
    }
}